package com.imooc.imoocbilibili.controller;

import com.imooc.imoocbilibili.socket.WebSocket;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 江黎
 * @since 2022-05-15
 */
@RestController
public class WebsocketTestController {
    @Autowired
    private WebSocket webSocket;

    @GetMapping("/ws")
    public void send() {
        webSocket.sendMessage("今天版本上线", "10");
    }
}
